package com.syni.mdd.sjb.common.component.utils.feign.fallback.mddAll;

import com.syni.mdd.sjb.common.component.utils.common.constants.CommonResultCode;
import com.syni.mdd.sjb.common.component.utils.common.constants.CommonResultMsg;
import com.syni.mdd.sjb.common.component.utils.common.utils.RpcResponseVo;
import com.syni.mdd.sjb.common.component.utils.feign.dto.mddAll.apiOrder.FindByOrderIdInDto;
import com.syni.mdd.sjb.common.component.utils.feign.dto.mddAll.apiOrder.GetByBusinessOrderForDataBankDto;
import com.syni.mdd.sjb.common.component.utils.feign.service.mddAll.OrderRestService;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;

@Component
public class OrderRestFallBackService implements OrderRestService {

    @Override
    public RpcResponseVo timeToCancel(Integer orderId, String cancelTime) {
        return RpcResponseVo.result(CommonResultCode.CODE_ERROR, CommonResultMsg.HAND_FAIL);
    }

    @Override
    public RpcResponseVo findByOrderIdIn(FindByOrderIdInDto findByOrderIdInDto) {
        return RpcResponseVo.result(CommonResultCode.CODE_ERROR, CommonResultMsg.HAND_FAIL);
    }

    public RpcResponseVo getByBusinessOrderForDataBank(@RequestBody GetByBusinessOrderForDataBankDto getByBusinessOrderForDataBankDto) {
        return RpcResponseVo.result(CommonResultCode.CODE_ERROR, CommonResultMsg.HAND_FAIL);
    }
}
